package persistence;

import domain.Diary;

import java.util.List;

public interface DiaryDAO {


    //获取所有日志
    List<Diary> getAllDiary();
    //获取特定IP或账号的日志
    List<Diary> getDiaryByName(String name);
    //根据关键字获取日志
    List<Diary> getDiaryByKeyword(String name,String keyword);
    //保存日志
    void insertNewDiary(Diary diary);
}
